
function deleteNews(o) {
		var name = o.name;
		var url = '';
		msg = '确认要删除该新闻记录 吗？';
		if(window.confirm(msg)) {
			url = 'newsManage.action?id=' + name + '&' + 'act=delete';
			window.location = url;
		}
}

function update(o) {
		var name = o.name;
		var url = '';
		msg = '确认更新该新闻记录吗？';
		if(window.confirm(msg)) {
			url = 'newsManage.action?id=' + name + '&' + 'act=update';
			window.location = url;
		}
}

function edit(o) {
	window.location = 'newsManage.action?id=' + o.name + '&' + 'act=edit';
}
function open(o) {
	window.location = 'newsManage.action?id=' + o.name + '&' + 'act=open';
}
function add() {
	window.location = 'newsManage_showAdd.action';
}
function showPage(action){
	var index = document.getElementById('id_PageIndex').value;
	var size = document.getElementById('id_PageSize').value;
	var degree = document.getElementById('id_Degree').value;
	var type1 = document.getElementById('id_Type1').value;
	var type2 = document.getElementById('id_Type2').value;
	var type3 = document.getElementById('id_Type3').value;
	var publishTime = document.getElementById('id_PublishTime').value;
	var activeTime = document.getElementById('id_ActiveTime').value;
	var url = action + '?i=' + index + "&s=" + size + "&d=" + degree 
	+ "&t1=" + type1 + "&t2=" + type2 + "&t3=" + type3 
	+ "&pt=" + publishTime + "&at=" + activeTime + "&o=degree";
	window.location = url;
}
function changePage(action,index){
	var url = action + '?i=' + index;
	window.location = url;
}